#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_CCANVASUI_CANVAS_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_CCANVASUI_CANVAS_H

#include "ContainerUI.h"

class CCanvasUI:public CContainerUI
{
public:
	CCanvasUI(void);
	virtual ~CCanvasUI(void);

	LPCTSTR GetClass() const;

	bool SetWatermark(UINT iBitmapRes, int iOrientation = HTTOPRIGHT);
	bool SetWatermark(LPCTSTR pstrBitmap, int iOrientation = HTTOPRIGHT);

	void DoPaint(HDC hDC, const RECT& rcPaint);

	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

protected:
	COLORREF m_clrBack;
	HBITMAP m_hBitmap;
	BITMAP m_BitmapInfo;
	int m_iOrientation;
};

#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_CCANVASUI_CANVAS_H
